import request from '@/utils/request'



export function getTypeList() {
  return request({
    url: '/md/type/list',
    method: 'get',
  })
}

export function getSearchType(params) {
    return request({
      url: '/md/type/like',
      method: 'get',
      params
    })
  }

  export function deleteType(params) {
    return request({
      url: '/md/type/del',
      method: 'post',
      params
    })
  }

  export function typeInfo(params) {
    return request({
      url: '/md/type/info',
      method: 'get',
      params
    })
  }

  export function addType(params) {
    return request({
      url: '/md/type/add',
      method: 'post',
      data: params
    })
  }

  export function updateType(params) {
    return request({
      url: '/md/type/update',
      method: 'post',
      data: params
    })
  }